package com.zhz.mall.portal.enums;

import lombok.AllArgsConstructor;
import lombok.Getter;

/**
 * 订单状态：0->待付款；1->待发货；2->已发货；3->已完成；4->已关闭；5->无效订单
 *
 * @author zhouhengzhe
 * @date 2023/2/4
 */
@Getter
@AllArgsConstructor
public enum OrderStatusEnum {

    WAIT_PAYMENT(0, "代付款"),
    WAIT_SHIPPING(1, "待发货"),
    DELIVERED(2, "已发货"),
    COMPLETED(3, "已完成"),
    CLOSED(4, "已关闭"),
    INVALID(5, "无效订单");

    private final Integer code;
    private final String message;
}
